package com.project.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.Data;
import org.springframework.data.annotation.Id;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.time.LocalDate;
import java.time.LocalDateTime;

/**
 * ClassName: GlobalTime
 * Package: com.project.entity
 * Description: 全局时间变量
 *
 * @Author 看到风
 * @Create 2023/11/6 17:49
 * @Version 1.0
 */
@Data
public class GlobalTime implements Serializable {




    private Long id;

    private Long projectId;


    private LocalDate beginDate;

    private LocalDate endDate;

    private  int code;

    @TableField(fill = FieldFill.INSERT)//插入时填充字段
    private  LocalDateTime createTime;

    @TableField(fill = FieldFill.INSERT_UPDATE)//插入和更新时填充字段
    private  LocalDateTime modifiedTime;

    @TableField(fill = FieldFill.INSERT)//插入时填充字段
    private Long createUserId;

    @TableField(fill = FieldFill.INSERT_UPDATE)//插入和更新时填充字段
    private Long modifiedUserId;

}
